package com.zaydanwu.cla.model;

import java.io.Serializable;

/**
 * teacher_message
 * @author 
 */
public class TeacherMessage implements Serializable {
    private Long id;

    private String teacherName;

    private String college;

    private String office;

    private Double longNumber;

    private Long shortNumber;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getOffice() {
        return office;
    }

    public void setOffice(String office) {
        this.office = office;
    }

    public Double getLongNumber() {
        return longNumber;
    }

    public void setLongNumber(Double longNumber) {
        this.longNumber = longNumber;
    }

    public Long getShortNumber() {
        return shortNumber;
    }

    public void setShortNumber(Long shortNumber) {
        this.shortNumber = shortNumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TeacherMessage other = (TeacherMessage) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTeacherName() == null ? other.getTeacherName() == null : this.getTeacherName().equals(other.getTeacherName()))
            && (this.getCollege() == null ? other.getCollege() == null : this.getCollege().equals(other.getCollege()))
            && (this.getOffice() == null ? other.getOffice() == null : this.getOffice().equals(other.getOffice()))
            && (this.getLongNumber() == null ? other.getLongNumber() == null : this.getLongNumber().equals(other.getLongNumber()))
            && (this.getShortNumber() == null ? other.getShortNumber() == null : this.getShortNumber().equals(other.getShortNumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTeacherName() == null) ? 0 : getTeacherName().hashCode());
        result = prime * result + ((getCollege() == null) ? 0 : getCollege().hashCode());
        result = prime * result + ((getOffice() == null) ? 0 : getOffice().hashCode());
        result = prime * result + ((getLongNumber() == null) ? 0 : getLongNumber().hashCode());
        result = prime * result + ((getShortNumber() == null) ? 0 : getShortNumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", teacherName=").append(teacherName);
        sb.append(", college=").append(college);
        sb.append(", office=").append(office);
        sb.append(", longNumber=").append(longNumber);
        sb.append(", shortNumber=").append(shortNumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}